import java.util.Scanner;

public class GuessNumber {
    public static void main(String[] args) {
        int sjs = (int) (Math.random() * 100 + 1);
        System.out.println("猜一个一到一百之间的数字");
        Scanner SC=new Scanner(System.in);
        while (true) {
            int cai= SC.nextInt();
            if (cai > sjs) {
                System.out.println("猜大了！");
            } else if (cai < sjs) {
                System.out.println("猜小了！");
            } else {
                System.out.println("猜对了！");
                break;
            }
        }
    }
}